﻿namespace org.mayb.Fixtures
{
    public class ObjectReference
    {
        public string Reference { get; set; }

        public ObjectReference(ObjectInfo oi)
        {
            this.Reference = oi.ID;
        }

        public ObjectReference(string key)
        {
            this.Reference = key.StartsWith("$") ? key.Substring(1) : key;
        }
    }
}
